Skip to content

fix(watch): refuse a busy output folder before looking for tools - #7

Merged
jonit-dev merged 1 commit into
mainfrom
fix/watch-args-before-tools
Nov 5, 2026
Merged

jonit-dev merged 1 commit into
mainfrom
fix/watch-args-before-tools

Conversation

@jonit-dev

Copy link
Copy Markdown
Collaborator

CI for #5 caught the order: on a runner without yt-dlp, the watcher reported yt-dlp not found when the real complaint was a non-empty --out. Argument checks now run before tool discovery, so the first error a caller sees is the one they caused.

Reproduced and verified with PATH=/usr/bin:/bin (no yt-dlp anywhere): non-empty --out now reports output folder is not empty, exit 1. npm test 44/44.

⚠️ This fixes the npm test failure only. The release:assets step also fails on main, before any of my changes: carmageddon fetches Dethrace-labs/dethrace, which answers 403 ("Please ask the owner to check their account"). Main was green on 2026-10-28, so the upstream account was flagged since. That row has to move before any release can publish — an owner decision, not something to patch here.

CI caught the order: a machine without yt-dlp reported the missing tool when
the real complaint was a non-empty --out. Argument checks now run before
tool discovery, so the first error a caller sees is the one they caused.
@jonit-dev
jonit-dev merged commit dcda29f into main Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant